﻿@model MvcOrganizer.Models.UserProfile

@{
    ViewBag.Title = "EditUser";
}

<h2>EditUser</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    @Html.HiddenFor(model => model.UserId)
    
    <div class="form_settings">
        <p>
            @Html.LabelFor(model => model.UserName)
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </p>
        <p>
            @Html.LabelFor(model => model.Email)
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </p>
        <p style="padding-top: 15px">
            <span>&nbsp;</span>
            <input type="submit" value="Save" class="submit" />
        </p>
    </div>   
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
